package org.boulderfoodrescue.webapp.client.rpc;

import java.util.List;

import org.boulderfoodrescue.webapp.shared.OneTimeEvent;
import org.boulderfoodrescue.webapp.shared.Pickup;
import org.boulderfoodrescue.webapp.shared.RecurringEvent;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface TimeSlotServiceAsync {
	
	void saveOneTimeEvent(OneTimeEvent event, AsyncCallback<Long> callback);

	void getOneTimeEvents(Long locationKey,
			AsyncCallback<List<OneTimeEvent>> callback);

	void saveRecurringEvent(RecurringEvent event, AsyncCallback<RecurringEvent> callback);

	void getRecurringEvent(Long locationKey,
			AsyncCallback<List<RecurringEvent>> callback);

	void deleteOneTimeEvent(OneTimeEvent event,
			AsyncCallback<List<Pickup>> callback);

	void deleteRecurringEvent(RecurringEvent event,
			AsyncCallback<List<Pickup>> callback);

}
